﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using H2.NET.Data.Common;
using H2.NET.Business;

namespace H2.NET.Web.Controls
{
    public partial class ControlsAssessmentList : TaskControl
    {
        #region 事件 Load (页面)
        /// <summary>
        /// 
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                Expression exp = new Expression();
                exp &= t_Assessment.process == TaskAPI.Process;
                exp &= t_Assessment.incident == TaskAPI.Incident;
                exp &= t_Assessment.incident != 0;
                exp &= t_Assessment.status != -1;

                rep_AssessmentList.DataSource = (List<t_Assessment>)exp.List<t_Assessment>(Storage.Context1, new Region(0, 100), t_Assessment.time.Desc);
                rep_AssessmentList.DataBind();
            }
        }
        #endregion
    }
}
